package net.xinqushi.design.COR;


/**
 * 通常命名方式为 *Handler
 * 责任链模式，查看jdk源码 FilterChain , SpringMVC HandlerExecutionChain
 */
public abstract class Handler {

    private Handler nextHandler;


    public Handler getNextHandler() {
        return nextHandler;
    }

    public void setNextHandler(Handler nextHandler) {
        this.nextHandler = nextHandler;
    }

    public abstract void doHandler();
}
